package com.mall.advertising.service.impl;

import java.util.List;

import com.mall.advertising.domain.TCrow;
import com.mall.advertising.mapper.TCrowMapper;
import com.mall.advertising.service.ITCrowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 人群Service业务层处理
 *
 * @date 2025-02-14
 */
@Service
public class TCrowServiceImpl implements ITCrowService
{
    @Autowired
    private TCrowMapper tCrowMapper;

    /**
     * 查询人群
     *
     * @param id 人群主键
     * @return 人群
     */
    @Override
    public TCrow selectTCrowById(Long id)
    {
        return tCrowMapper.selectTCrowById(id);
    }

    /**
     * 查询人群列表
     *
     * @param tCrow 人群
     * @return 人群
     */
    @Override
    public List<TCrow> selectTCrowList(TCrow tCrow)
    {
        return tCrowMapper.selectTCrowList(tCrow);
    }

    /**
     * 新增人群
     *
     * @param tCrow 人群
     * @return 结果
     */
    @Override
    public int insertTCrow(TCrow tCrow)
    {
        return tCrowMapper.insertTCrow(tCrow);
    }

    /**
     * 修改人群
     *
     * @param tCrow 人群
     * @return 结果
     */
    @Override
    public int updateTCrow(TCrow tCrow)
    {
        return tCrowMapper.updateTCrow(tCrow);
    }

    /**
     * 批量删除人群
     *
     * @param ids 需要删除的人群主键
     * @return 结果
     */
    @Override
    public int deleteTCrowByIds(Long[] ids)
    {
        return tCrowMapper.deleteTCrowByIds(ids);
    }

    /**
     * 删除人群信息
     *
     * @param id 人群主键
     * @return 结果
     */
    @Override
    public int deleteTCrowById(Long id)
    {
        return tCrowMapper.deleteTCrowById(id);
    }
}
